package com.syx.commoncore.Controller;

import com.syx.commoncore.Model.Result;

public class BaseController {
    public static Result<Void> toResult(Integer row){
        if (row!=1){
            return Result.failure();

        }
        return Result.success();
    }

    public Result<Void> toResult(boolean result) {
        return result ? Result.success() : Result.failure();
    }
}
